[Unit]
Description=kafka

[Service]
User={{ middleware_user }}
Group={{ middleware_user }}
Environment=PATH=/opt/java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
ExecStart=/opt/elasticsearch-{{ item.hport }}/bin/elasticsearch
Restart=always
RestartSec=10
LimitNOFILE=102400
LimitNPROC=102400
[Install]
WantedBy=multi-user.target
